package com.jvyou.app.ds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jvyou.app.common.domain.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色信息表(Role)表数据库访问层
 *
 * @author 橘柚
 * @since 2025-03-05 14:11:41
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<String> getRoleByUserId(@Param("userId") Long id);

    void deleteRoleMenuByRoleId(@Param("roleId") Long roleId);

    void insertRoleMenu(@Param("roleId") Long roleId, @Param("menuIds") List<Long> menuIds);

    void insertRoleUser(@Param("userId") Long userId, @Param("roleId") Long roleId);
}
